import request from '@/utils/request'

// 查询微生物监测列表
export function listMicroorganism(query) {
  return request({
    url: '/hma/microorganism/list',
    method: 'get',
    params: query
  })
}

// 查询微生物监测详细
export function getMicroorganism(readingId) {
  return request({
    url: '/hma/microorganism/' + readingId,
    method: 'get'
  })
}

// 新增微生物监测
export function addMicroorganism(data) {
  return request({
    url: '/hma/microorganism',
    method: 'post',
    data: data
  })
}

// 修改微生物监测
export function updateMicroorganism(data) {
  return request({
    url: '/hma/microorganism',
    method: 'put',
    data: data
  })
}

// 删除微生物监测
export function delMicroorganism(readingId) {
  return request({
    url: '/hma/microorganism/' + readingId,
    method: 'delete'
  })
}
